<template>
  <div>
    <div>Home</div>
  </div>
</template>

<script>
import Decimal from 'decimal.js';
export default {
  name: 'Home',
  data() {
    return {

    };
  },
  mounted() {
    // let c = null;
    // let a = 9.123;
    // let b = 13.456;
    // c = new Decimal(0).plus(a, b).toNumber();
    // console.log(c);

    console.log((1.4501).toFixed(1)); // 1.5
    console.log((1.45).toFixed(1)); // 1.4
    console.log((1.55).toFixed(1)); // 1.6
    let num = new Decimal(1.45).toFixed(1);
    console.log(new Decimal(num).toNumber());
  }
};
</script>

<style lang="scss" scoped>

</style>